#include <Python.h>

PyObject *hello(PyObject *self) {
	return PyUnicode_FromFormat("Hello C extension!");
}

char liucc01_docs[] =
   "liucc01(): 该模块的文档放在这里!!\n";

PyMethodDef liucc01_funcs[] = {
	{
		"hello",
		(PyCFunction)hello,
		METH_NOARGS,
		liucc01_docs,
	},
	{ NULL }
};

char liuccmod_docs[] = "This is liucc module doc.";

PyModuleDef liucc01_mod = {
	PyModuleDef_HEAD_INIT,
	"liucc01",
	liuccmod_docs,
	-1,
	liucc01_funcs,
	NULL,
	NULL,
	NULL,
	NULL
};

PyMODINIT_FUNC PyInit_liucc01(void) {
	return PyModule_Create(&liucc01_mod);
}
